package com.cn.serverline.lineicp.produce.mapper;

import com.cn.serverline.lineicp.produce.entity.vo.AssemblyTaskVo;
import com.cn.serverline.lineicp.produce.entity.vo.Code;
import com.cn.serverline.lineicp.produce.entity.vo.EquipmentTaskVo;
import com.cn.serverline.lineicp.produce.entity.dto.EquipmentTaskDto;
import com.cn.serverline.lineicp.produce.entity.vo.MaterialComponentsVo;
import com.cn.serverline.lineicp.produce.entity.vo.MaterialResourcesVo;
import com.cn.serverline.lineicp.workshopPlan.entity.PlanLineSchedule;
import com.cn.serverline.lineicp.workshopPlan.entity.request.ExamineRequest;
import com.github.yulichang.base.MPJBaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface TaskMapper extends MPJBaseMapper<PlanLineSchedule> {
    List<EquipmentTaskVo> getEquipment(EquipmentTaskDto equipmentTaskDto);

    List<AssemblyTaskVo> getAssembly(EquipmentTaskDto equipmentTaskDto);

    Code partNumber(Long id);
    //查询开工检查，零组件、消耗材料、辅助材料(总装)
    List<MaterialComponentsVo> CommencementTotalExamine(ExamineRequest examineRequest);

    //查询开工检查，零组件、消耗材料、辅助材料(部装)
    List<MaterialComponentsVo> CommencementDivisionExamine(ExamineRequest examineRequest);

    //查询开工检查，设备工装工具(总)
    List<MaterialResourcesVo> CommencementTotalResourcesExamine(ExamineRequest examineRequest);

    //查询开工检查，设备工装工具(部)
    List<MaterialResourcesVo> CommencementDivisionResourcesExamine(ExamineRequest examineRequest);
}
